package org.hong.h12.controller;

import org.hong.h12.commom.Response;
import org.hong.h12.entity.Teacher;
import org.hong.h12.service.teacher.TeacherService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/teacher")
public class TeacherController {
    @Autowired
    TeacherService teacherService;
    @RequestMapping("/all")
    public Response allTeacher() {
        return Response.ok(teacherService.allTeacher());
    }
}
